<!--
  Generated template for the Flashlight page.

  See http://ionicframework.com/docs/v2/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>flashlight</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <button ion-button block margin-bottom="20px" (click)="getFlashlight(true)">打开手电筒</button>
  <button ion-button block color="danger"  margin-bottom="20px" (click)="getFlashlight(false)">关闭手电筒</button>
  <button ion-button block round color="secondary" (click)="getFltoggle()">切换手电筒</button>
</ion-content>
